package array;


import model.Student;

public class ArrayTest {

    public static void main(String[] args) {
        Array<Integer> array = new Array<Integer>();
        for (int i = 0; i < 10; i++) {
            array.addLast(i);
        }
        array.removeLast();
        array.removeLast();
        array.removeLast();
        array.removeLast();
        array.removeLast();
        array.removeLast();

        System.out.println(array);

        Array<Student> students = new Array<Student>();
        students.addFirst(new Student("Lyx", 20));
        students.addFirst(new Student("Ltt", 30));
        students.addFirst(new Student("Charles", 10));
        System.out.println(students);

    }

}
